package group.sicher.salesman.controller;

import group.sicher.salesman.dto.input.ShopInfoInput;
import group.sicher.salesman.dto.input.ShopStoreInput;
import group.sicher.salesman.dto.input.ShopUpdateInput;
import group.sicher.salesman.dto.output.ShopInfoOutput;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * @author Donald
 * @description
 * @date 2019-07-03
 **/
@Api(tags = "【业务员】商户接口")
@RestController
@RequestMapping("/shops")
public class ShopController {
    @ApiOperation("商户详情")
    @PostMapping("/detail")
    public ShopInfoOutput show(@Valid @RequestBody ShopInfoInput input) {
        return null;
    }

    @ApiOperation("商户详情")
    @PostMapping("/detail/update")
    public void update(@Valid @RequestBody ShopUpdateInput input) {
    }

    @ApiOperation("商户详情")
    @PostMapping("/create")
    public void store(@Valid @RequestBody ShopStoreInput input) {

    }
}
